import zipfile
"""
adds toadd.txt to test.jar
"""


z = zipfile.ZipFile("test.jar", "a")
z.write("moreadd.txt")
z.close()